{smcl}
{cmd:help myweibull}{...}
{right:Example estimation command from the ML book, 3rd ed.}
{hline}

{title:Title}

{pstd}
{hi:myweibull} {hline 2} The Weibull model


{title:Syntax}

{phang2}
{cmd:myweibull}
	{depvar} [{indepvars}]
	{ifin} {weight}
	[{cmd:,} {it:options}]


{synoptset 26 tabbed}{...}
{synopthdr}
{synoptline}
{syntab:Model}
{synopt: {opth fail:ure(varname)}}specify failed/censored observations{p_end}
{synopt: {opth c:onstraints(estimation options##constraints():constraints)}}apply specified linear constraints{p_end}
{synopt :{opth e:xposure(varname:varname_e)}}include ln({it:varname_e}) in
model with coefficient constrained to 1{p_end}
{synopt :{opth off:set(varname:varname_o)}}include {it:varname_o} in model with
coefficient constrained to 1{p_end}
{synopt :{opt noc:onstant}}suppress constant term{p_end}
{synopt: {cmd:nolrtest}}report the model Wald test{p_end}

{syntab:Reporting}
{synopt :{opt l:evel(#)}}set confidence level; default is {cmd:level(95)}{p_end}
{synopt: {opt hr}}report hazard ratios{p_end}

{syntab:SE/Robust}
{synopt :{opth vce(vcetype)}}{it:vcetype}
	may be {opt oim}, {opt r:obust}, or {opt opg}{p_end}
{synopt :{opth cl:uster(varname)}}adjust
	standard errors for intragroup correlation; implies {cmd:vce(robust)}{p_end}

{syntab:Max options}
{synopt :{it:{help maximize:maximize_options}}}control
	the maximization process; seldom used{p_end}
{synoptline}
{phang}
{cmd:bootstrap},
{cmd:jackknife},
{cmd:statsby},
{cmd:stepwise},
{cmd:svy}, and
{cmd:xi} are allowed; see {help prefix}.
{p_end}
{phang}
{opt fweight}s, {opt iweight}s, and {opt pweight}s are allowed;
see {help weight}.
{p_end}


{title:Description}

{pstd}
{cmd:myweibull} uses {cmd:ml} to fit a Weibull regression model.


{title:Options}

{dlgtab:Model}

{phang}
{opt failure(varname)} identifies the failure indicator variable.
If {cmd:failure()} is not specified, every observation is assumed to end in a
failure; i.e. no censoring.

{phang}
{opt constraints(constraints)},
{opth "exposure(varname:varname_e)"},
{opt offset(varname_o)}, and
{opt noconstant};
see {help estimation options}.

{phang}
{cmd:nolrtest} indicates that the model significance test should be a Wald
test instead of a likelihood-ratio test.

{dlgtab:Reporting}

{phang}
{opt level(#)}; see {help estimation options}.

{phang}
{cmd:hr} reports the estimated coefficients transformed to hazard ratios,
i.e., exp(b) rather than b.

{dlgtab:SE/Robust}

{phang}
{opt vce(vcetype)}; see {it:{help vce_option}}.

{phang}
{opth cluster(varname)}; see {help estimation options}.

{dlgtab:Max options}

{phang}
{it:maximize_options}; {opt iter:ate(#)}, [{cmdab:no:}]{opt lo:g},
{opt tr:ace}, {opt tol:erance(#)}, {opt ltol:erance(#)}; see {help maximize}.
These options are seldom used.


{title:Also see}

{psee}
Online:
{helpb streg},
{helpb constraint}
{p_end}
